package com.stxx.framwork.tran;

import java.util.HashMap;
import java.util.Map;

public interface TranBean {
    Map<String,Object> getTran();
    void setTran(Map<String,Object> tran);
    default void writeTranValue(String fieldName,Object value){
        if(getTran()==null){
            setTran(new HashMap<>());
        }
        getTran().put(fieldName,value);
    }
    default void writeTranValue(Map<String,Object> values){
        if(getTran()==null){
            setTran(new HashMap<>());
        }
        getTran().putAll(values);
    }
}
